/* Created on Sep 29, 2010 */
package org.tdwg.codeblitz.model;

import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author Ian Cottingham
 *
 */
@XmlRootElement(name="walk")
public class Walk {

	public static final String TABLE_ID = "265168";
	
	private String guid; 
	private String name;
	private String description;
	private String walker;
	private String date;
	
	public Walk() { }
	
	/* this is kind of obfuscated with the array pass, should be refactored */
	public Walk(String fusionTablesRow) {
		
		String[] columns = fusionTablesRow.split(",");
		
		this.guid = columns[0];
		this.name = columns[1];
		this.description = columns[2];
		this.walker = columns[3];
		
		if ( columns.length > 4 ) {
			this.date = columns[4];
		} else { 
			this.date = "";
		}
	}
		
	public String getGuid() {
		return guid;
	}

	public void setGuid(String guid) {
		this.guid = guid;
	}

	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getDescription() {
		return description;
	}
	
	public void setDescription(String description) {
		this.description = description;
	}
	
	public String getWalker() {
		return walker;
	}
	
	public void setWalker(String walker) {
		this.walker = walker;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}
}
